When i run my tests from UITestTarget and try to get code coverage it always return zero coverage. Does code coverage work with only unit testing target?

I am running my UI test cases from UITest target in xcode 8. Also same time i try to gather code coverage profile data but it always return zero code coverage. When i run a simple test case in unit test target i get some code coverage using profile data. Does that mean code coverage will work only for unit testing target?

xcode 8, UITesting , Code Coverage

Posted on Sep 23, 2016 2:21 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

When i run my tests from UITestTarget and try to get code coverage it always return zero coverage. Does code coverage work with only unit testing target?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.